/**
 * Mise en oeuvre de Fou.h
 *
 * @file Fou.cxx
 */

// A besoin de la declaration de la classe
#include "Fou.h"
#include <iostream>
#include <cstdlib>

using namespace std;

Fou::Fou()
{
	//cout << "Fou() - " << this << endl;
}

Fou::~Fou()
{
	//cout << "~Fou() - " << this << endl;
}

bool Fou::mouvementValide(Echiquier *e, int x, int y)
{
	return this->mouvementAutorise(e, x, y) && (abs(this->x() - x) == abs(this->y() - y));
}
